import { Injectable } from '@angular/core';
import {SimpleJsonFormatter} from '../../../ng-tools';

@Injectable({
  providedIn: 'root'
})
export class FunctionFormatterService {

  username: SimpleJsonFormatter = {propName: 'username', displayName: '用户名'};
  functions: SimpleJsonFormatter = {propName: 'function', displayName: '功能'};
  constructor() {
  }

  get formatter() {
    return [
      this.username,
      this.functions
    ];
  }
}
